package br.com.gtoolz.myimc.modelo;

import java.io.Serializable;

public class ResultadoCals implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	private String data;
	private String tmb;
	private String qna;
	private String qcp;
	private String qcg;
	private String descricao;
	
	@Override
	public String toString() {
		return this.descricao;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getTmb() {
		return tmb;
	}

	public void setTmb(String tmb) {
		this.tmb = tmb;
	}

	public String getQna() {
		return qna;
	}

	public void setQna(String qna) {
		this.qna = qna;
	}

	public String getQcp() {
		return qcp;
	}

	public void setQcp(String qcp) {
		this.qcp = qcp;
	}

	public String getQcg() {
		return qcg;
	}

	public void setQcg(String qcg) {
		this.qcg = qcg;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((data == null) ? 0 : data.hashCode());
		result = (int) (prime * result + id);
		result = prime * result + ((qna == null) ? 0 : qna.hashCode());
		result = prime * result + ((qcg == null) ? 0 : qcg.hashCode());
		result = prime * result + ((qcp == null) ? 0 : qcp.hashCode());
		result = prime * result + ((tmb == null) ? 0 : tmb.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResultadoCals other = (ResultadoCals) obj;
		if (data == null) {
			if (other.data != null)
				return false;
		} else if (!data.equals(other.data))
			return false;
		if (id != other.id)
			return false;
		if (qna == null) {
			if (other.qna != null)
				return false;
		} else if (!qna.equals(other.qna))
			return false;
		if (qcg == null) {
			if (other.qcg != null)
				return false;
		} else if (!qcg.equals(other.qcg))
			return false;
		if (qcp == null) {
			if (other.qcp != null)
				return false;
		} else if (!qcp.equals(other.qcp))
			return false;
		if (tmb == null) {
			if (other.tmb != null)
				return false;
		} else if (!tmb.equals(other.tmb))
			return false;
		return true;
	}

}
